#pragma once

#include <iostream>

template <typename T>
class Singleton{
  private:
    static T* data;
  public:
    static T* GetInstance(){
      if(data == nullptr)
        data = new T();

      return data;
    }
};
